<%@ page contentType="text/html;charset=UTF-8" %>

<%@ page import="com.dongwq.Module" %>
<html>
	<head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
	<meta name="layout" content="main"/>
	<title>Insert title here</title>
	</head>
	<body>
	  <div class="body">
	  	<div>
	    	<h3>module内容展示</h3>
	    	<g:each in="${Module.list() }" var="module">
	    		${module.name}
	    		
	    	</g:each>
	    	<br/>
	    	Module.listByUser(user:params.user)
	    	<br/>
	    	<g:each in="${modules }" var="module">
	    	 	<g:render template="/module/${module.uri}"></g:render>	
	    	</g:each>
	    </div>
	    <h4><g:link action="list">return to user list</g:link></h4>
	  </div>
	</body>
</html>